<?php
class User extends DataMapper {
	// Insert related models that Template can have just one of.
	var $has_one = array();

	// Insert related models that Template can have more than one of.
	var $has_many = array(
            'article', 
            'course' => array('join_table' => 'users_courses'), 
            'classroom' => array('join_table' => 'classrooms_users'),
            'group' => array('join_table' => 'users_groups'),
            'message'
        );


	

    function __construct($id = NULL)
    {
        parent::__construct($id);
    }

    // Validation prepping function to encrypt passwords

}

/* End of file user.php */
/* Location: ./application/models/user.php */
